//
//  UIButton+EdgeInsetsClick.h
//  
//
//  Created by cheng on 2020/6/16.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (EdgeInsetsClick)

@property(nonatomic ,copy)void(^block)(UIButton*);
#pragma mark block回调
-(void)addTapBlock:(void(^)(UIButton*btn))block;

#pragma mark // 上图片下文字 x为间距
- (void)edgeInsetsImageTopWith:(CGFloat)x;
#pragma mark // 上文字下图片 x为间距
- (void)edgeInsetsImageBottomWith:(CGFloat)x;
#pragma mark // 默认就是 左图片右文字 x为间距
- (void)edgeInsetsImageLeftWith:(CGFloat)x;
#pragma mark // 左文字右图片 x为间距
- (void)edgeInsetsImageRightWith:(CGFloat)x;
@end
NS_ASSUME_NONNULL_END
